import request from '@/utils/request'

// 查询问卷调查的用户填报数据列表
export function listRecord(query) {
  return request({
    url: '/module/survey/record/list',
    method: 'get',
    params: query
  })
}
// 查询问卷调查的用户填报数据列表
export function listRecordShengcheng(query) {
  return request({
    url: '/module/survey/record/listRecordShengcheng',
    method: 'get',
    params: query
  })
}


// 查询问卷调查的用户填报数据列表
export function listWorkRecord(query) {
  return request({
    url: '/module/survey/record/listWork',
    method: 'get',
    params: query
  })
}

// 查询问卷调查的用户填报数据列表
export function listWorkPointRecord(query) {
  return request({
    url: '/module/survey/record/listPointWork',
    method: 'get',
    params: query
  })
}

export function listPlanRecord(query) {
  return request({
    url: '/module/survey/record/listPlan',
    method: 'get',
    params: query
  })
}
// 查询问卷调查的用户填报数据详细
export function getRecord(id) {
  return request({
    url: '/module/survey/record/' + id,
    method: 'get'
  })
}

// 新增问卷调查的用户填报数据
export function addRecord(data) {
  return request({
    url: '/module/survey/record',
    method: 'post',
    data: data
  })
}

// 修改问卷调查的用户填报数据
export function updateRecord(data) {
  return request({
    url: '/module/survey/record',
    method: 'put',
    data: data
  })
}

// 删除问卷调查的用户填报数据
export function delRecord(id) {
  return request({
    url: '/module/survey/record/' + id,
    method: 'delete'
  })
}

// 导出问卷调查的用户填报数据
export function exportRecord(query) {
  return request({
    url: '/module/survey/record/export',
    method: 'get',
    params: query
  })
}
